class ShopMatchMakerListModel {
  String? msg;
  int? code;
  List<ShopMatchMakerListDataModel>? data;

  ShopMatchMakerListModel({this.msg, this.code, this.data});

  ShopMatchMakerListModel.fromJson(Map<String, dynamic> json) {
    msg = json['msg'];
    code = json['code'];
    if (json['data'] != null) {
      data = <ShopMatchMakerListDataModel>[];
      json['data'].forEach((v) {
        data!.add(ShopMatchMakerListDataModel.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = {};
    data['msg'] = msg;
    data['code'] = code;
    if (this.data != null) {
      data['data'] = this.data!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class ShopMatchMakerListDataModel {
  String? id;
  String? memberId;
  int? singletonNumber;
  int? pullNumber;
  dynamic profileNo;
  dynamic shareCode;
  int? level;
  String? createTime;
  String? updateTime;
  String? validDate;
  int? matchType;
  String? profilePhoto;
  String? matchName;
  String? matchPhoto;
  dynamic shortName;
  dynamic introduce;
  String? area;
  String? address;
  int? ornotShow;
  int? ornotAddr;
  dynamic mobilePhone;
  dynamic trade;
  dynamic openTime;
  dynamic endTime = '';
  double longitude = 0;
  double latitude = 0;
  String? matchProducts;
  String? distance = '';
  int ornotOpen = 0; //0未营业   1营业中

  ShopMatchMakerListDataModel(
      {this.id,
      this.memberId,
      this.singletonNumber,
      this.pullNumber,
      this.profileNo,
      this.shareCode,
      this.level,
      this.createTime,
      this.updateTime,
      this.validDate,
      this.matchType,
      this.profilePhoto,
      this.matchName,
      this.shortName,
      this.introduce,
      this.area,
      this.address,
      this.ornotShow,
      this.ornotAddr,
      this.mobilePhone,
      this.trade,
      this.openTime,
      this.longitude = 0,
      this.latitude = 0,
      this.matchPhoto,
      this.matchProducts,
      this.endTime = '',
      this.distance = '',this.ornotOpen=0,});

  ShopMatchMakerListDataModel.fromJson(Map json) {
    id = json['id'];
    memberId = json['memberId'];
    singletonNumber = json['singletonNumber'];
    pullNumber = json['pullNumber'];
    profileNo = json['profileNo'];
    shareCode = json['shareCode'];
    level = json['level'];
    createTime = json['createTime'];
    updateTime = json['updateTime'];
    validDate = json['validDate'];
    matchType = json['matchType'];
    profilePhoto = json['profilePhoto'];
    matchName = json['matchName'];
    shortName = json['shortName'];
    introduce = json['introduce'];
    area = json['area'];
    address = json['address'];
    ornotShow = json['ornotShow'];
    ornotAddr = json['ornotAddr'];
    mobilePhone = json['mobilePhone'];
    trade = json['trade'];
    openTime = json['openTime'] ?? '9:00';
    endTime = json['endTime'] ?? '22:00';
    longitude = json['longitude'];
    latitude = json['latitude'];
    matchPhoto = json['matchPhoto'];
    matchProducts = json['matchProducts'] ?? '';
    distance = json['distance'] ?? '';
    ornotOpen=json['ornotOpen']??0;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = {};
    data['id'] = id;
    data['memberId'] = memberId;
    data['singletonNumber'] = singletonNumber;
    data['pullNumber'] = pullNumber;
    data['profileNo'] = profileNo;
    data['shareCode'] = shareCode;
    data['level'] = level;
    data['createTime'] = createTime;
    data['updateTime'] = updateTime;
    data['validDate'] = validDate;
    data['matchType'] = matchType;
    data['profilePhoto'] = profilePhoto;
    data['matchName'] = matchName;
    data['shortName'] = shortName;
    data['introduce'] = introduce;
    data['area'] = area;
    data['address'] = address;
    data['ornotShow'] = ornotShow;
    data['ornotAddr'] = ornotAddr;
    data['mobilePhone'] = mobilePhone;
    data['trade'] = trade;
    data['openTime'] = openTime;
    data['endTime'] = endTime;
    data['longitude'] = longitude;
    data['latitude'] = latitude;
    data['matchPhoto'] = matchPhoto;
    data['matchProducts'] = matchProducts;
    return data;
  }
}
